Optimal. Leaf size=22 \[ \frac{\left (a+b \log \left (c x^n\right )\right )^3}{3 b n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0239641, antiderivative size = 22, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {2302, 30} \[ \frac{\left (a+b \log \left (c x^n\right )\right )^3}{3 b n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2302
Rule 30
Rubi steps
\begin{align*} \int \frac{\left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx &=\frac{\operatorname{Subst}\left (\int x^2 \, dx,x,a+b \log \left (c x^n\right )\right )}{b n}\\ &=\frac{\left (a+b \log \left (c x^n\right )\right )^3}{3 b n}\\ \end{align*}
Mathematica [A] time = 0.0030663, size = 22, normalized size = 1. \[ \frac{\left (a+b \log \left (c x^n\right )\right )^3}{3 b n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.037, size = 56, normalized size = 2.6 \begin{align*}{\frac{{b}^{2} \left ( \ln \left ( c{x}^{n} \right ) \right ) ^{3}}{3\,n}}+{\frac{b \left ( \ln \left ( c{x}^{n} \right ) \right ) ^{2}a}{n}}+{\frac{\ln \left ( c{x}^{n} \right ){a}^{2}}{n}}+{\frac{{a}^{3}}{3\,bn}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.18812, size = 27, normalized size = 1.23 \begin{align*} \frac{{\left (b \log \left (c x^{n}\right ) + a\right )}^{3}}{3 \, b n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.837986, size = 136, normalized size = 6.18 \begin{align*} \frac{1}{3} \, b^{2} n^{2} \log \left (x\right )^{3} +{\left (b^{2} n \log \left (c\right ) + a b n\right )} \log \left (x\right )^{2} +{\left (b^{2} \log \left (c\right )^{2} + 2 \, a b \log \left (c\right ) + a^{2}\right )} \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 22.3419, size = 60, normalized size = 2.73 \begin{align*} \begin{cases} \frac{a^{2} \log{\left (c x^{n} \right )} + a b \log{\left (c x^{n} \right )}^{2} + \frac{b^{2} \log{\left (c x^{n} \right )}^{3}}{3}}{n} & \text{for}\: n \neq 0 \\\left (a^{2} + 2 a b \log{\left (c \right )} + b^{2} \log{\left (c \right )}^{2}\right ) \log{\left (x \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.24202, size = 76, normalized size = 3.45 \begin{align*} \frac{1}{3} \, b^{2} n^{2} \log \left (x\right )^{3} + b^{2} n \log \left (c\right ) \log \left (x\right )^{2} + b^{2} \log \left (c\right )^{2} \log \left (x\right ) + a b n \log \left (x\right )^{2} + 2 \, a b \log \left (c\right ) \log \left (x\right ) + a^{2} \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]